Ext.define('TS.model.base.CustomerModel', {
    extend: 'Ext.data.Model', 
    fields: ['customerId', 'parentId','customerCode','customerName','custType',
    'contactMan','telephone','mobilephone','qqNumber','email',
    'address','deliveryAdd','deptId','empId',
    {
    	name:'creditAmount',
    	type:'float'
    },
    {
    	name:'creditDay',
    	type:'int'
    },
    {name:'acctLocked',type:'boolean'},{name:'acctExpired',type:'boolean'},{name:'acctEnabled',type:'boolean'},{name:'deleted',type:'boolean'},'sfdaCode','remark']
    ,associations: [{
		 type:'hasOne',
		 model: 'TS.model.base.EmpModel',  
		 associatedName : 'emp', 	     
		 associationKey:'emp' 
       },{
       	 type:'hasOne',
		 model: 'TS.model.base.DeptModel',  
		 associatedName : 'dept', 	     
		 associationKey:'dept' 
       }
    ]
});